/*
 * @Author: your name
 * @Date: 2022-02-28 09:49:27
 * @LastEditTime: 2022-02-28 09:54:32
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \JS\day02\4-遍历数组.js
 */
var arr=['hello',1,true,null];
for(var i=0;i<arr.length;i++){
    console.log(arr[i]);
}
for(var index in arr){
    console.log(arr[index],index);    
}